#!/bin/bash

DAYS=30
DIR=/u01/app/oracle/admin

find $DIR -mtime +$DAYS -name "*.log" -exec rm {} \;
find $DIR -mtime +$DAYS -name "*.trc" -exec rm {} \;
find $DIR -mtime +$DAYS -name "*.aud" -exec rm {} \;
find $DIR/*/cdump -mtime +$DAYS -name "*" -exec rm -r {} \;
